package cn.gson.work.model.mapper;

import cn.gson.work.model.pojos.Dossier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DossierMapper {
    public List<Dossier> findDossier(@Param("rsid") String rsid,
                                     @Param("rsname") String rsname, @Param("rstate") String rstate);
    public void addDossier(Dossier dossier);
    public Dossier findByRsid(String rsid);
    public void editDossier(@Param("rstate") String rstate, @Param("rsno") long rsno);
    public int delDossier(int id);
    public List<Dossier> findDossierAll();
    public List<Dossier> findByRsno(int rsno);
}
